home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_2
/
tjlot14.zip
/
TJLOTTO.DOC
< prev
Wrap
Text File
|
1992-05-25
|
16KB
|
398 lines
============================
The T&J LOTTO Door!
============================
(c)1992 T&J Software
One of the T&J Software Collection of multi-BBS door programs.
Supporting PCBoard, Wildcat!, Gap, QBBS, RBBS, Spitfire,
UltraBBS, Telegard, TriBBS, Remote Access, and WWIV
VERSION 1.40 05/25/92
By
Tom Wildoner
397 West Broadway
Jim Thorpe, PA
18229
VOICE (717)325-9480
*between 5:30 & 10:00 p.m. Eastern Time
From
The T&J BBS
(717)325-9481
1200/2400/9600/19200/38400
24 Hours/Day
LATEST VERSION:
===============
Please call the T&J BBS for the latest version of this program.
LEGALITIES:
===========
THIS SOFTWARE AND ACCOMPANYING MATERIALS ARE DISTRIBUTED "AS IS" WITHOUT
WARRANTY, EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO ANY
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT SHALL ANYONE INVOLVED WITH THE CREATION AND PRODUCTION OF THIS
PRODUCT BE LIABLE FOR INDIRECT, SPECIAL, OR CONSEQUENTIAL DAMAGES, ARISING
OUT OF ANY USE THEREOF OR BREACH OF ANY WARRANTY.
DISTRIBUTION:
=============
You may make this file available for downloading from your BBS or you may
upload it to any BBS of your choice, provided that you do not make any
changes to the contents of the archive (ZIP file). The archive and its
individual contents may not be used by any service that charges any money
whatsoever, without the written permission of the author.
PROGRAM DESCRIPTION:
====================
The T&J LOTTO Door allows your users to select numbers on a type of
lottery ticket. The number range is SysOp configurable along with the
number or tickets a person may enter per day. As the SysOp, you can pick
the prizes awarded for correctly getting 4, 5 or 6 digits correct.
The user gets a chance to pick 10 numbers per lottery ticket from the
number range you specify. Running TJLOT14 with the command line LOTTO
(maintenance program) must be run each night. The LOTTO command line
picks the winning numbers (it selects 6 numbers from the range you specify)
and then reads each of the users lottery tickets and checks for winners.
It will LOG the PRIZE WINNING tickets to a special SYSOP.LOG file for
your records. It will also keep a listing of the last 7 days of winning
tickets for the users to check.
The door also maintains a statitics file which will keep track of how many
times the door was played, how many tickets (total) have been purchased,
and the total winning tickets (tickets matching 4, 5, or 6 digits).
The user can check all winning lottery tickets from the previous night
and a summation of all PRIZE WINNING tickets for the last week.
The LOTTO command line maintenance program will create a color and ASCII
bulletin either stating that NO winning tickets were picked or that there
were winning tickets picked.
NOTE:
=====
The LOTTO.KEY file that is distributed with this door does NOT expire!
This is simply here so the door has a KEY to read. When you register,
you will receive a new LOTTO.KEY file which will unlock the full version
of the door. I don't know any other way to do this, and I refuse to use
any type of expiration date routines.
The user is limited to just ONE ticket until registered.
FEATURES:
=========
--- Desqview Aware.
--- COM1-4 support and non-standard IRQ's.
--- Colorful ANSI screens.
--- Chat function.
--- NO BRUN module needed for play.
--- BETA tested on five different boards.
--- Will return to BBS on dropped carrier.
--- Will TIMEOUT a player after 5 minutes of no activity.
--- Use of HOT KEYS while in the door.
--- Handy statistics presented to user on door usage.
--- Support BBS available.
--- Easily RESET the entire program.
CONFIGURATION:
=============
Example configuration file for PCBOARD.SYS
------------------------------------------
C:\PCB\PCBOARD.SYS <=- (Full pathname of your PCBOARD.SYS file)
T&J Software <=- (Change this to your BBS name)
Tom <=- (The Sysop's first name)
Wildoner <=- (The Sysop's last name)
Example configuration file for USERS.SYS
----------------------------------------
C:\PCB\USERS.SYS <=- (Full pathname of your USERS.SYS file)
T&J Software <=- (Change this to your BBS name)
Tom <=- (The Sysop's first name)
Wildoner <=- (The Sysop's last name)
Example configuration file for DOOR.SYS
---------------------------------------
C:\BBS\DOOR.SYS <=- (Full pathname of your DOOR.SYS file)
T&J Software <=- (Change this to your BBS name)
Tom <=- (The Sysop's first name)
Wildoner <=- (The Sysop's last name)
Example configuration file for USERINFO.DAT
-------------------------------------------
C:\BBS\USERINFO.DAT <=- (Full pathname of your USERINFO.DAT file)
T&J Software <=- (Change this to your BBS name)
Tom <=- (The Sysop's first name)
Wildoner <=- (The Sysop's last name)
NOTE: DOOR.SYS must be in the SAME directory as USERINFO.DAT
Example configuration file for CALLINFO.BBS
-------------------------------------------
C:\BBS\CALLINFO.BBS <=- (Full pathname of your CALLINFO.BBS file)
T&J Software <=- (Change this to your BBS name)
Tom <=- (The Sysop's first name)
Wildoner <=- (The Sysop's last name)
Example configuration file for DORINFOx.DEF
-------------------------------------------
C:\BBS\DORINFOx.DEF <=- (Full pathname of your DORINFOx.DEF file
where 'x' is the BBS Node number.
T&J Software <=- (Change this to your BBS name)
Tom <=- (The Sysop's first name)
Wildoner <=- (The Sysop's last name)
Example configuration file for SFDOORS.DAT
------------------------------------------
C:\BBS\SFDOORS.DAT <=- (Full pathname of your SFDOORS.DAT file)
T&J Software <=- (Change this to your BBS name)
Tom <=- (The Sysop's first name)
Wildoner <=- (The Sysop's last name)
Example configuration file for CHAIN.TXT
----------------------------------------
C:\BBS\CHAIN.TXT <=- (Full pathname of your CHAIN.TXT file)
T&J Software <=- (Change this to your BBS name)
Tom <=- (The Sysop's first name)
Wildoner <=- (The Sysop's last name)
Example configuration file for GTUSER.BBS
-----------------------------------------
C:\BBS\GTUSER.BBS <=- (Full pathname of your GTUSER.BBS file)
T&J Software <=- (Change this to your BBS name)
Tom <=- (The Sysop's first name)
Wildoner <=- (The Sysop's last name)
1 <=- (COM port number - defaults to 1)
1 <=- (Node number - defaults to 1)
Example Batch File
==================
A sample batch file is included and is similer to the following:
ECHO OFF
CD\DOORS\LEMON <=- Switch to the door's Directory.
LEMON30 LEMON.CFG <=- Execute the door program and pass the
configuration filename to the program.
CD\PCB <=- Go back to PCB DIR when user exits door.
BOARD <=- Restart BBS.
This Door is multi-node compatible so you may run more than 1 node from
the same .CFG file provided the path to your system file (DORINFOx.DEF,
CALLINFO.BBS, etc) is exactly the same unless you are using environment
variables, (q.v.)
Environment Variables
=====================
PCBoard automatically creates the %PCBDRIVE% & %PCBDIR% environment
variables. Non-PCBoard systems may also use these variables by including
the following in either your BBS batch or AUTOEXEC.BAT
SET PCBDRIVE=C: <- Drive letter of your BBS files
SET PCBDIR=\BBSDIR <- Path to your BBS files
Then in your Door .CFG file instead of putting C:\BBSDIR\DOOR.SYS, you
would put %PCBDRIVE%%PCBDIR%\DOOR.SYS. This allows you to use just one
.CFG file for multi-node operation!
To specify a non-standard IRQ, put the IRQ number after the .CFG on the
command line. For example:
LEMON30 LEMON.CFG /5
or using the PCBDRIVE procedure: SET IRQ=5 and use
LEMON30 LEMON.CFG /%IRQ%
This tells the program to use IRQ 5 instead of the standard IRQ.
Sysop Keys
==========
F3 - Toggles the printer On/Off. Value is passed to PCBoard and/or
written to DOOR.SYS and USERS.SYS
F4 - Toggles the Page Bell on/off. Value is passed to PCBoard
and/or written to DOOR.SYS and USERS.SYS
F5 - DOS Shell. Allows SysOp to exit to DOS from inside a DOOR.
F7 - Toggles the Caller Alarm On/Off. Value is passed to PCBoard
and/or written to DOOR.SYS and USERS.SYS
F8 - Returns the caller involuntarily to the BBS.
F9 - Toggles the local display On/Off. Value is passed to PCBoard
and/or written to DOOR.SYS and USERS.SYS
F10 - Activates SysOp CHAT mode within the DOOR.
ESC - Deactivates CHAT mode. DOOR is resumed.
UP - Give the caller extra time while in the DOOR.
DN - Subtract time from the caller while in the DOOR.
HOME - HELP key for Status Line options.
ALT-N - SysOp next on toggle. Value passed to PCBoard. (PCBoard only)
ALT-X - PCBoard will exit after current caller logs off. Value is
passed to PCBoard. Not available on non-PCBoard systems.
Your SYSOP.CFG file should contain ALL the items listed below. You can use
your text editor to edit the provided file.
First prize is a registered GAME PACK! A $50 value if you have a
winning 6 number LOTTO ticket!
If you get five digits, you'll get a free registered door of your
choice! Pick the one you like best!
And, if you get 4 digits, get a free registered copy of the OneRun
program -- a $5 value!
c:\wc30\bull\bull1.scr
c:\wc30\bull\bull1.bbs
60
6
LINE 1&2: The prize that will be awarded for getting all 6 numbers
correct. If you only use one line, leave line 2 blank! Try
to limit each line to 70 characters. This text will be
centered in the door display, so don't worry about centering.
LINE 3&4: The prize that will be awarded for getting 5 numbers correct.
follow the same guidance as above.
LINE 5&6: The prize that will be awarded for getting 4 numbers correct.
follow the same guidance as above.
LINE 7: PATH to your color bulletin.
LINE 8: PATH to your ASCII bulletin.
LINE 9: The range for your numbers (i.e. from 1 to ??). Try keeping
this number between 40 and 80 in intervals of 10 (40, 50, 60
70, or 80). What are the chances of winning you ask? See the
section titled CHANCES?!? listed below.
LINE 10: How many tickets a person can enter in one day.
The file MUST have all 10 lines!
To run in LOCAL mode simply run the LOCAL.BAT file or run as TJLOT14 LOCAL
either way will work.
CHANCES?!?
==========
How often do you want your users to win? I randomly generated 25,000 tickets
for each possible range of number (i.e. 1 to 40, 1 to 50, 1 to 60, 1 to 70,
and 1 to 80). The data will show how many tickets had 0 numbers picked, 1
number picked, etc.... Here are the results I obtained:
Number Range from 1 to 30, tickets generated: 25000
0: 1635 1: 6466 2: 9183 3: 5831 4: 1681 5: 199 6: 6
Number Range from 1 to 40, tickets generated: 25000
0: 3775 1: 9270 2: 8169 3: 3127 4: 615 5: 44 6: 1
Number Range from 1 to 50, tickets generated: 25000
0: 6093 1: 10228 2: 6516 3: 1880 4: 266 5: 18 6: 0
Number Range from 1 to 60, tickets generated: 25000
0: 7807 1: 10694 2: 5197 3: 1172 4: 123 5: 8 6: 0
Number Range from 1 to 70, tickets generated: 25000
0: 9554 1: 10374 2: 4215 3: 779 4: 78 5: 1 6: 0
Number Range from 1 to 80, tickets generated: 25000
0: 10953 1: 10090 2: 3384 3: 538 4: 36 5: 0 6: 0
As you can see, the higher the number, the fewer 4, 5, and 6 digit
winners are. This doesn't mean that a user on his first attempt will
not hit the BIG ONE (6 digits) on his first attempt at picking numbers
from the range of 1 to 80!
If you have a very nice prize setup for hitting 6 digits, then use a
higher number!
THE SPECIAL.USR FILE:
====================
The SPECIAL.USR file is just what is implied. It's there for special
users of your system. Simply enter their name followed by a comma and then
enter how many tickets they can play per day! See the example SPECIAL.USR
file supplied with the door.
The number of tickets listed after their name will over-ride the default
number of tickets you have listed in your SYSOP.CFG file. One idea
you can use is to make the prize for getting 4 digits correct is increasing
the number of tickets that user can play per day! If they hit 4 digits, add
there name to the SPECIAL.USR file and increase the number of tickets they
can play!
RESETTING THE DOOR:
==================
To reset the door from scratch simply run TJLOT14 with the command line
RESET. ---> TJLOT14 RESET
MAINTENANCE!:
============
You must run TJLOT14 with the LOTTO command line as part of your nightly
maintenance work for the door to operate properly! The maintenance routines
for BBS's vary, so it's up to you to determine how to run this program as
part of your maintenance.
Run it like this ----> TJLOT14 LOTTO
FUTURE VERSIONS:
================
--->> Let me know what you would like to see!
VERSION HISTORY:
===============
Version 1.00 ......... First release. 03/28/92
Version 1.01 ......... Modified the computer generated ticket routines,
no major problem but it needed to be fixed. 4-6-92
Version 1.10 ......... Modified the opening screen routines -- some users
seemed to think the startup was too long. You can
now simply view the previous night's winners, last
seven days of winners, and the prize from the main
menu. 4-14-92
Version 1.20 ......... Updated the code with the latest door routines.
Fixed a small bug that would sometimes give a
serious error (board lockup). 4-22-92
Version 1.30 ......... Updated with new door routines, prizes will now
show up even if the door isn't registered.
05-17-92
Version 1.40 ......... The LOTTO.EXE and the RESET.EXE programs were placed
inside the main code (saved A LOT of space). Also,
upgraded the door to the newest door routines.
05-25-92
UPGRADING:
=========
If you are upgrading from any version prior to v1.4 I would suggest
reinstalling the door completely. Please note the change in the nightly
maintenance routines! The LOTTO.EXE file is now history!
REGISTERING:
============
That's all there is to it! If you have any problems or questions
please feel free to call the T&J BBS at (717)325-9481 and join the
T&J Software Conference.
See the enclosed registration form for ordering! (REGISTER.TXT)